#include"progress.h"

int main()
{
    int i = 0;
    char bar[102];
    memset(bar,'*',sizeof(bar));

   const  char* bar2 = "|/-\\";
    while(i<=100)
    {
        printf("[%-100s][%d%%][%c]\r", bar, i,bar2[i%4]);
        fflush(stdout);
        bar[i++]='#';
        sleep(1);

    }

    printf("\n");

    return 0;
}
